package manager;

import java.io.InputStream;
import java.util.ArrayList;

import javax.faces.context.FacesContext;
import javax.servlet.ServletContext;

import com.predic8.schema.SimpleType;
import com.predic8.wsdl.Definitions;
import com.predic8.wsdl.WSDLParser;

public class WsdlManager {
	
	public static void initialize(Definitions defs) {
		WSDLParser parser = new WSDLParser();
//		ServletContext servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();
		String resourceName = "http://fbintranetdev.finansbank.com.tr/FBWS/esbDispatcher/esbDispatcher?wsdl";
//		InputStream i = servletContext.getResourceAsStream(resourceName);
		defs = parser.parse(resourceName);
	}

}

